#include <boost/timer.hpp>
#include <boost/progress.hpp>

#include "print.h"

int aprint(const char * fmt, ...)
{
	va_list args; 
	va_start(args,fmt);
	DataBuffer dbuf; 
	print(dbuf,fmt,args);

	va_end (args);
	return 0; 
}

int main()
{

	int count = 2000;

	boost::progress_timer t;
	while (count -- > 0 )
	{
		aprint("hello %x %c, %s \n",20, 'a', "abced" );
	}	
	return 0; 
}
